﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.IO;
using System.Web;

namespace Sicurezza.CA.DataProvider
{
    public class ConnectionStringDataProvider
    {
        public static string ConnectionString { get; set; }

        static ConnectionStringDataProvider()
        {
            string CADB = ConfigurationManager.AppSettings["db"];
            string CADBpath = Path.Combine(
                HttpContext.Current.Request.PhysicalApplicationPath,
                CADB);
            string connStr = ConfigurationManager.ConnectionStrings["CADB"].ToString();
            ConnectionString = connStr.Replace(CADB, CADBpath);
        }
    }
}
